# # class Po():
# #     def __init__(self,name,age,height):
# #         self.name = name
# #         self.age = age
# #         self.height = height
# #     def run(self):
# #         print("{}今年{}岁,身高{},每天早上跑完步去吃东西".format(self.name,self.age,self.height))
# #
# #     def eat(self):
# #         print("{}今年{}岁,身高{},{}不跑步,{}喜欢吃东西".format(self.name,self.age,self.height,self.name,self.name))
# #
# # d = Po("小明","18","1.75")
# # d.run()
# # d = Po("小美","17","1.65")
# # d.eat()
#
# class Dog():
#     def __init__(self):
#         self.name = "大黄"
#         self.color = "黄颜色"
#     def dog(self):
#         print("一只{}的狗狗叫{}".format(self.color,self.name))
# class Ake(Dog):
#     def shout(self):
#         print("看见生人汪汪叫")
#     def shake(self):
#         print("看见家人要一把")
# b = Ake()
# b.dog()
# b.shout()
# b.shake()


class T():
    def __init__(self,name,wheel,colour):
        self.name = name
        self.wheel = wheel
        self.colour = colour
    def run(self):
        print("{}的{}{}跑起来飞".format(self.colour,self.name,self.wheel))

d = T('狗','四条腿',"骚红色")
d.run()

class Dog():
    def __init__(self,name,leg):
        self.name = name
        self.leg = leg

    def run(self):
        print("{}的{}会飞".format(self.leg,self.name))
q = Dog("狗",'两条腿')
q.run()